//
//  focusUS.m
//  Focus
//
//  Created by dlios on 14-11-11.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "focusUS.h"

@interface focusUS ()

@end

@implementation focusUS

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIImageView *background = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    
    background.image = [UIImage imageNamed:@"backgrand.jpg"];
    
    [self.view addSubview:background];
    [background release];
    
    UIImageView *myImage = [[UIImageView alloc]initWithFrame:CGRectMake(60, 50, 200, 150)];
    [myImage setImage:[UIImage imageNamed:@"scoop封面.png"]];
    [self.view addSubview:myImage];
    [myImage release];
    
    UIView *down = [[UIView alloc]initWithFrame:CGRectMake(0, self.view.frame.size.height - 48, 320, 50)];
    down.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:down];
    [down release];
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(0, 5, 40, 30);
    [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [button setImage:[UIImage imageNamed:@"circle_icon_quit.png"] forState:UIControlStateNormal];
    [down addSubview:button];
    
    UILabel *content = [[UILabel alloc]initWithFrame:CGRectMake(20, 210, 60, 30)];
    content.text = @"内容简介";
    content.font = [UIFont systemFontOfSize:14];
    content.layer.borderWidth = 1;
    content.layer.borderColor = [UIColor blackColor].CGColor;
    [self.view addSubview:content];
    [content release];
    
    UILabel *content1 = [[UILabel alloc]initWithFrame:CGRectMake(20, 230, 320, 80)];
    content1.text = @"一款多功能类实用型新闻类app，包含资讯、图片、杂志、娱乐等国内外最新头条";
    content1.font = [UIFont systemFontOfSize:14];
    content1.numberOfLines = 10;
    [self.view addSubview:content1];
    [content1 release];
   
    UILabel *contact = [[UILabel alloc]initWithFrame:CGRectMake(20, 300, 60, 30)];
    contact.text = @"联系我们";
    contact.font = [UIFont systemFontOfSize:14];
    contact.layer.borderWidth = 1;
    contact.layer.borderColor = [UIColor blackColor].CGColor;
    [self.view addSubview:contact];
    [contact release];
    
    UILabel *kaifa = [[UILabel alloc]initWithFrame:CGRectMake(20, 335, 200, 30)];
    kaifa.text = @"开发者邮箱:lizhi@foxmail.com";
    kaifa.font = [UIFont systemFontOfSize:14];
    kaifa.numberOfLines = 10;
    [self.view addSubview:kaifa];
    [kaifa release];
    
    UILabel *kaifa1 = [[UILabel alloc]initWithFrame:CGRectMake(20, 370, 260, 30)];
    kaifa1.text = @"开发者邮箱:wangchen@foxmail.com";
    kaifa1.font = [UIFont systemFontOfSize:14];
    kaifa1.numberOfLines = 10;
    [self.view addSubview:kaifa1];
    [kaifa1 release];
    
}
//按钮点击事件
-(void)buttonAction:(UIButton *)sender{
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
//    [self.navigationController popViewControllerAnimated:YES];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
